#ifndef ROLEDELETE_H
#define ROLEDELETE_H

#include <QWidget>
#include <QPaintEvent>
#include <QPainter>
#include "blldataflow.h"
#include "sqlhelper.h"

namespace Ui {
class RoleDelete;
}

class RoleDelete : public QWidget
{
    Q_OBJECT

public:
    explicit RoleDelete(QWidget *parent = nullptr);
    ~RoleDelete();

private slots:
    void on_btnConfirmDeleteRole_clicked();

    void on_btnCancel_clicked();
    void setRole(Role role_);

    void on_btnClose_clicked();
    void retranslateUiSlot();

private:
    void initWidget();

protected:
    void paintEvent(QPaintEvent *event);

private:
    Ui::RoleDelete *ui;
    BllDataFlow * bdf;
    SqlHelper * sqlHelper;
    Role role;
};

#endif // ROLEDELETE_H
